<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/comm :: head " ></head>
<body>
<div class="wrapper">
    <header th:replace="common/comm :: header "></header>
    <div class="main-panel">
        <div class="content">
            <div class="container-fluid">
                <h4 class="page-title">
                    <font id="WOW_TRANSLATE_43" class="WOW_TRANSLATE_STYLE"
                          data--w-o-w_-i-n-d-e-x="43">系统管理 >> 部门管理 >> 部门修改</font>
                </h4>
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-body">
                                <input type="hidden" name="parent" th:value="${organ.parentId}"/>
                                <form th:action="@{/sys/organization/updateSave}"  method="post">

                                    <div class="form-group">
                                        <label for="low"> 组织简称:&nbsp;&nbsp; </label>
                                        <input type="text" th:value="${organ.fullName}" name="fullName" required="required"/>
                                    </div>

                                    <div class="form-group">
                                        <label for="low"> 组织全称:&nbsp;&nbsp; </label>
                                        <input type="text" th:value="${organ.shortName}" name="shortName" required="required"/>
                                    </div>

                                    <div class="form-group">
                                        <label for="low"> 所属组织:&nbsp;&nbsp; </label>
                                        <select name="parentId"></select>
                                    </div>

                                    <div class="form-group">
                                        <label for="low">  地址:&nbsp;&nbsp; </label>
                                        <input type="text" th:value="${organ.address}"  name="address" required="required"/>
                                    </div>

                                    <div class="form-group">
                                        <label for="low">  简介:&nbsp;&nbsp; </label>
                                        <input type="text" th:value="${organ.intro}" name="intro" required="required"/>
                                    </div>

                                    <div class="form-group">
                                        <label for="low">  备注:&nbsp;&nbsp; </label>
                                        <input type="text" th:value="${organ.remark}" name="remark" required="required"/>
                                    </div>

                                    <div class="form-group">
                                        <label for="low">  是否启用:&nbsp;&nbsp; </label>
                                        <input style="position:static;" type="checkbox" name="isStart" th:if="${organ.isStart} eq 1" value="1" checked/>
                                        <input style="position:static;" type="checkbox" name="isStart" th:if="${organ.isStart} eq 0" value="0"/>
                                    </div>

                                    <input type="hidden" name="id" th:value="${organ.id}"/>

                                    <div class="form-group" style="text-align: center;">
                                        <input type="submit" class="btn btn-success" value="保存"/>
                                        <input type="button" value="返回" class="btn btn-danger" onclick="javascript:history.back(-1);">
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<footer th:replace="common/comm :: common-footer"></footer>
<script th:src="@{/js_hr/organization/organization.js}"></script>
</html>